package com.heatup.apt.model;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotations.IdType;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.heatup.apt.model.user.UserInfo;

/**
 *
 * 储值卡明细表：cashcard_detail 在下载的时候批量生成。或领取的时候随机生成
 *
 */
@TableName("cashcard_detail")
public class CashcardDetail implements Serializable {

	@TableField(exist = false)
	private static final long serialVersionUID = 1L;

	/**  */
	@TableId(type = IdType.AUTO)
	private Integer id;

	/** 主表id */
	@TableField(value = "cashcard_id")
	private Integer cashcardId;

	/** 兑换码 */
	@TableField(value = "cashcard_code")
	private String cashcardCode;

	/** 生成时间 */
	@TableField(value = "make_time")
	private Date makeTime;

	/** 使用人 */
	@TableField(value = "user_id")
	private Integer userId;

	/** 是否已使用(1:已使用。0: 未使用） */
	@TableField(value = "is_used")
	private Integer isUsed;

	/** 使用时间 */
	@TableField(value = "use_time")
	private Date useTime;

	/** 是否有效（1:有效，0:失效） */
	@TableField(value = "is_valid")
	private Integer isValid;
	
	@TableField(exist=false)
	private UserInfo userInfo;
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getCashcardId() {
		return this.cashcardId;
	}

	public void setCashcardId(Integer cashcardId) {
		this.cashcardId = cashcardId;
	}

	public String getCashcardCode() {
		return this.cashcardCode;
	}

	public void setCashcardCode(String cashcardCode) {
		this.cashcardCode = cashcardCode;
	}

	public Date getMakeTime() {
		return this.makeTime;
	}

	public void setMakeTime(Date makeTime) {
		this.makeTime = makeTime;
	}

	public Integer getUserId() {
		return this.userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public Integer getIsUsed() {
		return this.isUsed;
	}

	public void setIsUsed(Integer isUsed) {
		this.isUsed = isUsed;
	}

	public Date getUseTime() {
		return this.useTime;
	}

	public void setUseTime(Date useTime) {
		this.useTime = useTime;
	}

	public Integer getIsValid() {
		return this.isValid;
	}

	public void setIsValid(Integer isValid) {
		this.isValid = isValid;
	}

	public UserInfo getUserInfo() {
		return userInfo;
	}

	public void setUserInfo(UserInfo userInfo) {
		this.userInfo = userInfo;
	}
	
	

}
